package org.example.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author huangy
 * @description
 * @since 2023/2/22 20:03
 **/
@Data
@Document(indexName = "cardinfo")
public class CardInfo {

    //id
    @Id
    @Field(store = true, type = FieldType.Keyword)
    private long id;

    //编号
    @Field(store = true, type = FieldType.Keyword)
    private String code;

}
